package com.sh.rbac.core.encrypt.encryptor;

import com.sh.rbac.core.encrypt.util.EncryptUtils;

/**
 * base64 加密器
 *
 * @author wb
 * @since 2025-10-24
 */
public class Base64Encryptor implements IEncryptor {
    @Override
    public String encrypt(EncryptContext context) {
        return EncryptUtils.encryptByBase64(context.getValue());
    }

    @Override
    public String decrypt(EncryptContext context) {
        return EncryptUtils.decryptByBase64(context.getValue());
    }
}
